projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f291b6
)
(x-resolve-font-name): Don't pass FACE to x-list-fonts
author
Richard M. Stallman
<rms@gnu.org>
Sat, 20 Nov 1993 08:42:47 +0000
(08:42 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Sat, 20 Nov 1993 08:42:47 +0000
(08:42 +0000)
if FACE has nil as its font.
lisp/faces.el
patch
|
blob
|
history
diff --git
a/lisp/faces.el
b/lisp/faces.el
index 32a0c995ab07fcac11a08c4bd8b5c1c147eb70fb..5abcd0927c23c18a259e2f0cf7f11a8efde1e160 100644
(file)
--- a/
lisp/faces.el
+++ b/
lisp/faces.el
@@
-439,7
+439,9
@@
also the same size as FACE on FRAME."
(and (eq frame t)
(setq frame nil))
(if pattern
- (let ((fonts (x-list-fonts pattern face frame)))
+ (let ((fonts (x-list-fonts pattern
+ (if (face-font face) face nil)
+ frame)))
(or fonts
(if face
(error "No fonts matching pattern are the same size as `%s'"